def method(n, nums):
    nums2 = []
    for i in range(len(nums)):
        front = (i - 1) % n
        nexti = (i + 1) % n
        nums2.append(nums[front] + nums[nexti])
    nums2 = ' '.join([str(num) for num in nums2])
    return nums2 

if __name__ == '__main__':
    n = int(input())
    nums = [int(x) for x in input().split(' ')]
    r = method(n, nums)
    print(r)